//---------------------------------------------------------------------------

#ifndef UColorH
#define UColorH

#include "UTypes.h"

struct RGBAColor {
	union {
		uint8 a[3];
		uint32 i;
		struct { uint8 r,g,b,a; } c;
	};
	RGBAColor() : i(0) {};
	RGBAColor(uint32 ai) : i(ai) {};
	//RGBAColor(uint8 aa[]) { a[0] = aa[0]; a[1] = aa[1]; a[2] = aa[2]; a[3] = aa[3]; };
	RGBAColor(uint8 ar, uint8 ag, uint8 ab) { c.r = ar; c.g = ag; c.b = ab; c.a = 0; };
	RGBAColor(uint8 ar, uint8 ag, uint8 ab, int aa) { c.r = ar; c.g = ag; c.b = ab; c.a = aa; };
};

#endif
